import React from 'react';
import { Form } from 'antd';
import { AxCreateForm } from '@/components/AxForm/AxCreateForm';
import { AxLabel, AxSelectSearch, AxTextArea } from '@/components/AxForm/AxFormItem';

const CreateUse: React.FC<any> = props => {
  const { form, ...rest } = props;

  return (
    <>
      <AxCreateForm
        form={form}
        title="申请使用"
        {...rest}
        items={[
          <AxSelectSearch form={form} label="项目经费名称" field="campusId" required />,
          <AxLabel form={form} label="经费本编号" field="campusId1" value="S-545521" />,
          <AxLabel form={form} label="项目经费类型" field="campusId2" value="科研项目经费" />,
          <AxTextArea form={form} label="申请说明" field="campusId3" />,
        ]}
      />
    </>
  );
};

export default Form.create<any>()(CreateUse);
